home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global mnv, ppl, foes, advance, soundspath, pwr, fxpath
- if getAt(mnv, 1) > 1 then
- if the keyCode > 124 then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if the keyCode = 126 then
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) - 17
- else
- set the locV of sprite getAt(ppl, 1) to the locV of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- if the keyCode > 122 then
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- if sprite(getAt(ppl, 1)).flipH = 1 then
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) - 17
- else
- set the locH of sprite getAt(ppl, 1) to the locH of sprite getAt(ppl, 1) + 17
- end if
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- else
- set the memberNum of sprite getAt(ppl, 1) to member(the memberNum of sprite getAt(ppl, 1) + 1, 2)
- setAt(mnv, 1, getAt(mnv, 1) - 1)
- end if
- end if
- else
- if the memberNum of sprite getAt(ppl, 1) < 82 then
- set the member of sprite getAt(ppl, 1) to member(1, 2)
- end if
- end if
- put getAt(pwr, 1) into field "power"
- if getAt(pwr, 1) <= 0 then
- go("dead")
- end if
- if advance = 1 then
- foes(getAt(foes, 1), getAt(ppl, 2))
- else
- if (advance = 2) or (advance = 3) then
- foes(getAt(foes, 2), getAt(ppl, 3))
- foes(getAt(foes, 3), getAt(ppl, 4))
- else
- if advance = 4 then
- foes(getAt(foes, 1), getAt(ppl, 2))
- end if
- end if
- end if
- puppetSprite(31, 0)
- if not soundBusy(4) then
- sound playFile 4, fxpath & "psymus.aif"
- end if
- if (sprite(30).visible = 1) and sprite getAt(ppl, 1) intersects 30 then
- go("endstage1")
- else
- go(marker(0))
- end if
- end
-